<+b_dialog dialog_title="Categories" dialog_space=0 dw=400 dh=600>
<input type=listbox name=categoryList sort ownerdraw=1 singlesel=0 width=#dw height=448>
<+d_dialog>
<table>
<tr>
	<td width=192>
		<img height=4><br>
		<#if genericSwitch>
			<input type=button name=add toolbar=1 width=60 height=20 xpar=images/button_add_wide.png  grayxpar=images/button_add_wide.png img=#fake grayImg=#fake fgcolor=#colorIcon fgcolorover=#colorSelection graycolor=#colorDialogIconGrey bgcolor=#colorDialog nofade=1 alt="Add a new category" ascent=20>
			<img width=#ds>
			<input type=button name=all toolbar=1 width=60 height=20 xpar=images/button_select_all.png  grayxpar=images/button_select_all.png img=#fake grayImg=#fake fgcolor=#colorIcon fgcolorover=#colorSelection graycolor=#colorDialogIconGrey bgcolor=#colorDialog nofade=1 alt="Select all" ascent=20>
			<input type=button name=none toolbar=1 width=60 height=20 xpar=images/button_select_none.png  grayxpar=images/button_select_none.png img=#fake grayImg=#fake fgcolor=#colorIcon fgcolorover=#colorSelection graycolor=#colorDialogIconGrey bgcolor=#colorDialog nofade=1 alt="Select none" ascent=20>
		<#else>
			<input type=button name=all toolbar=1 width=60 height=20 xpar=images/button_select_all.png  grayxpar=images/button_select_all.png img=#fake grayImg=#fake fgcolor=#colorIcon fgcolorover=#colorSelection graycolor=#colorDialogIconGrey bgcolor=#colorDialog nofade=1 alt="Select all" ascent=20>
			<input type=button name=none toolbar=1 width=60 height=20 xpar=images/button_select_none.png  grayxpar=images/button_select_none.png img=#fake grayImg=#fake fgcolor=#colorIcon fgcolorover=#colorSelection graycolor=#colorDialogIconGrey bgcolor=#colorDialog nofade=1 alt="Select none" ascent=20>
		<#endif>
	</td>
	<td width=#dw-197-#ds-#ds align=right>
		<input type=button name=ok value="Apply" width=#dbw height=#dbh bgcolor=#colorSelection textcolor=#colorSelectionText>
		<img width=#ds>
		<input type=button name=cancel value="Cancel" width=#dbw height=#dbh>
	</td>
</tr>
</table>
<+e_dialog>	
				
		
